<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> -->
    <title>Document</title>
</head>

<body>

    <button id="btn">button</button>
    <iframe id="iframe" style="width: 500px;height: 800px;" src="https://testadmin.chime.me/#/brandKit"
        frameborder="0"></iframe>
</body>
<script>
    iframe = document.getElementById('iframe')
    document.getElementById('btn').onclick = function () {
        console.log(1)
        if (iframe.src === 'https://testadmin.chime.me/#/iconMgt') {
            iframe.src = "https://testadmin.chime.me/#/brandKit"
        } else {
            iframe.src = "https://testadmin.chime.me/#/iconMgt"
        }
        iframe.contentWindow.location.reload()

    }
</script>

</html>